<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-btn-up-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">
	
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="接警情况" />
	<ui:param name="compToggleable" value="true" />
	<ui:param name="pvb" value="#{commonContentViewBean.parent}"/>
	
	<ui:define name="compButtons">
		<p:commandButton
			actionListener="#{emergencymanageManage.addJcjglManage}" title="保存"
			onstart="return SinoPortal.Validation.validateForm('#{compId}_form')"
			update="#{pvb.id}_0_form:#{pvb.id}_0_searchform"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			>
			<h:inputHidden value="#{commonContentViewBean.id}" />
		</p:commandButton>
		
		<!-- 
		<p:commandButton
			title="提交"
			onstart="return SinoPortal.Validation.validateForm('#{compId}_form')"
			update="#{pvb.id}_0_form"
			image="./img/icons/add.png" value="提交" style="margin:5px;"
			>
			
		</p:commandButton>
		 -->
		 
		<p:commandButton title="重置" image="ui-icon-disk" value="重置"></p:commandButton>
	</ui:define>
	
	<ui:define name="compHiddens">
		<!-- 
		<h:inputHidden id="casestate" value="" />
		<h:inputHidden id="disposepsn" value="" />
		<h:inputHidden id="CASECLASS" value="" />
		<h:inputHidden id="caseaddress" value="" />
		
		<h:inputHidden id="#{compId}_SJBH" value="" />
		<h:inputHidden id="#{compId}_SJBHS" value="" />
		<h:inputHidden id="#{compId}_caseid" value="" />
		<h:inputHidden id="#{compId}_ZLSLRJH" value="" />
		 -->
	</ui:define>
	
	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			
			<!-- 第一行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="reporttime" />
				<ui:param name="compBean2Id" value="reportmode" />
				<ui:param name="compBean1Lable" value="接警时间" />
				<ui:param name="compBean2Lable" value="报警形式" />
				<ui:param name="compBean1Required" value="true" />
				
				<ui:define name="compBean1Content">
					<p:calendar id="reporttime" size="33" mode="popup" showOn="button" 
						value="#{commonContentViewBean.reporttime}"
						pattern="yyyy年MM月d日 HH:mm:ss"  styleClass="{date:true}" locale="zh" popupIconOnly="true" />
				</ui:define>
				
				<ui:define name="compBean2Content">
					<sinox:codeSetInputTree id="reportmode" codeSetId="id_c_jjxs" value="#{commonContentViewBean.reportmode}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="receivedep" />
				<ui:param name="compBean1Lable" value="接报单位" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="receivedep" readonly="true" value="#{commonContentViewBean.receivedep}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="receivepsn" />
				<ui:param name="compBean1Lable" value="接 警 人" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="receivepsn" readonly="true" value="#{commonContentViewBean.receivepsn}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第四行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="casename" />
				<ui:param name="compBean1Lable" value="案事件名称" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="casename" value="#{commonContentViewBean.casename}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第五行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="bjnr" />
				<ui:param name="compBean1Lable" value="报案人陈述简要情况" />
				
				<ui:define name="compBean1Content">
					<h:inputTextarea style="width:100%;height:100px;overflow:auto;"
					id="bjnr" effectDuration="400"
					value="#{commonContentViewBean.bjnr}" />
				</ui:define>
			</ui:decorate>
				
		</ui:decorate>
		
	</ui:define>

</ui:composition>
